package com.shisfish.library.Impl;

import java.util.List;

import org.springframework.context.ApplicationContext;

import com.shisfish.library.Inter.IBookAddMessageInter;
import com.shisfish.library.Model.BookAddMessage;
import com.shisfish.library.Utils.Global.GetACXmlUtils;

public class BookAddMessageImpl implements IBookAddMessageInter {

	private ApplicationContext ac = GetACXmlUtils.getACXml();
	IBookAddMessageInter mapper = (IBookAddMessageInter) ac.getBean("bookAddMessageMapper");
	
	@Override
	public int insertOne(BookAddMessage t) {
		// TODO Auto-generated method stub
		return mapper.insertOne(t);
	}

	@Override
	public int insertAll(List<BookAddMessage> list) {
		// TODO Auto-generated method stub
		return mapper.insertAll(list);
	}

	@Override
	public int updateOne(BookAddMessage t) {
		// TODO Auto-generated method stub
		return mapper.updateOne(t);
	}

	@Override
	public int updateAll(List<BookAddMessage> list) {
		// TODO Auto-generated method stub
		return mapper.updateAll(list);
	}

	@Override
	public List<BookAddMessage> selectById(int id) {
		// TODO Auto-generated method stub
		return mapper.selectById(id);
	}

	@Override
	public List<BookAddMessage> selectByKey(String key) {
		// TODO Auto-generated method stub
		return mapper.selectByKey(key);
	}

	@Override
	public int countAll() {
		// TODO Auto-generated method stub
		return mapper.countAll();
	}

	@Override
	public List<BookAddMessage> selectAll() {
		// TODO Auto-generated method stub
		return mapper.selectAll();
	}

	@Override
	public int deleteOneById(int id) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public int deleteAllById(List<?> ids) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public int deleteOneByKey(String key) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public int deleteAllByKey(List<?> keys) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public int insertByISBN(List<String> isbn, String idadmin) {
		// TODO Auto-generated method stub
		return mapper.insertByISBN(isbn, idadmin);
	}

}
